package VN.EDU.IMIC.DEVELOPER.DOTHANHTUNG.OOP_MVC_LV1.CheckLoginUser;

import javax.management.modelmbean.ModelMBean;

public class LoginControllers {
	private User UserController;
	private UserModel UserModelController;
	
	//constructor
	
	public LoginControllers(User ObjUser){
		UserController = ObjUser;
		UserModelController = new UserModel();
	}
	
	//method
	
	public boolean CheckUserInfo(){
		if (UserModelController.ValidateData(UserController)){
			if(UserModelController.ValidateUser(UserController)){
				return true;
			}
			else {
				return false;
			}
		}
		else {
			return false;
		}
	}

}
